package com.jule.robot.service.holder;

import com.jule.robot.config.Config;

public class FunctionIdHolder {
    public final static int GAME_ID_TeenPatti_Normal = 91001001;

    //public final static String GATE_SVR_URI = "ws://10.0.0.92:8080/gate";
    //public final static String GATE_SVR_URI = "ws://127.0.0.1:8080/gate";
    //public final static String GATE_SVR_URI = "ws://10.0.0.67:8080/gate";
    //public final static String GATE_SVR_URI = "ws://10.0.0.81:8080/gate";
    //public final static String GATE_SVR_URI = "ws://10.0.0.92:62001/gate";

//    public final static String GATE_AUTH_SVR_URI = "ws://10.0.0.92:8080/auth";
//    public final static String GATE_SVR_URI = "ws://10.0.0.92:62001/gate";

    //梁艳宾机器
//    public final static String GATE_AUTH_SVR_URI = "ws://10.0.0.120:8070/auth";
//    public final static String GATE_SVR_URI = "ws://10.0.0.120:62001/gate";

    //罗小康机器
//    public final static String GATE_AUTH_SVR_URI = "ws://10.0.0.67:62001/auth";
//    public final static String GATE_SVR_URI = "ws://10.0.0.67:62001/gate";

    //郭旭机器
//    public final static String GATE_AUTH_SVR_URI = "ws://10.0.0.81:54001/auth";
//    public final static String GATE_SVR_URI = "ws://10.0.0.81:56001/gate";

    public final static String GATE_AUTH_SVR_URI = Config.GATE_AUTH_SVR_URI;
    public final static String GATE_SVR_URI = Config.GATE_SVR_URI;

    public final static int GATE_REQ_loginUser = 600001;
    public final static int GATE_ACK_loginUser = 600001 | 0x08000000;

    public final static int Room_REQ_ApplyJoinTable_NoRoomId = 40001; //压测时使用
    public final static int Room_REQ_ApplyJoinTable = 40003;
    public final static int Room_ACK_ApplyJoinTable = 40001 | 0x08000000;

    public final static int Game_REQ_ApplyJoinTable = 50000;
    public final static int Game_REQ_ApplySitDown = 50001;
    public final static int Game_REQ_ApplyStandUp = 50002;
    public final static int Game_REQ_ApplyLeave = 50003;
    public final static int Game_REQ_ApplyBuyIn = 50004;
    public final static int Game_REQ_ApplyBet = 50005;
    public final static int Game_REQ_ApplySeeCard = 50006;
    public final static int Game_REQ_ApplySideShow = 50007;
    public final static int Game_REQ_ApplyShow = 50008;
    public final static int Game_REQ_GetSideShowState = 50009;
    public final static int Game_REQ_IsAllowSideShow = 50010;
    public final static int Game_REQ_ApplyChooseUser = 50011;
    public final static int Game_REQ_ApplyFold = 50012;
    public final static int Game_REQ_RewardCroupier = 50050;
    public final static int Game_REQ_GiftsList = 50051;
    public final static int Game_REQ_GiveGifts = 50052;
    public final static int Game_REQ_ChoosePlayType = 50017;
    public final static int Game_REQ_GamePrepareReq = 50064;

    public final static int Game_ACK_ApplyJoinTable = Game_REQ_ApplyJoinTable | 0x08000000;
    public final static int Game_ACK_ApplySitDown = Game_REQ_ApplySitDown | 0x08000000;
    public final static int Game_ACK_ApplyStandUp = Game_REQ_ApplyStandUp | 0x08000000;
    public final static int Game_ACK_ApplyLeave = Game_REQ_ApplyLeave | 0x08000000;
    public final static int Game_ACK_ApplyBuyIn  = Game_REQ_ApplyBuyIn | 0x08000000;
    public final static int Game_ACK_ApplyBet = Game_REQ_ApplyBet | 0x08000000;
    public final static int Game_ACK_ApplySeeCard = Game_REQ_ApplySeeCard | 0x08000000;
    public final static int Game_ACK_ApplySideShow  = Game_REQ_ApplySideShow | 0x08000000;
    public final static int Game_ACK_ApplyShow = Game_REQ_ApplyShow | 0x08000000;
    public final static int Game_ACK_GetSideShowState = Game_REQ_GetSideShowState | 0x08000000;
    public final static int Game_ACK_IsAllowSideShow = Game_REQ_IsAllowSideShow | 0x08000000;
    public final static int Game_ACK_ApplyChooseUser = Game_REQ_ApplyChooseUser | 0x08000000;
    public final static int Game_ACK_ApplyFold = Game_REQ_ApplyFold | 0x08000000;
    public final static int Game_ACK_RewardCroupier = Game_REQ_RewardCroupier | 0x08000000;
    public final static int Game_ACK_GiftsList = Game_REQ_GiftsList | 0x08000000;
    public final static int Game_ACK_GiveGifts = Game_REQ_GiveGifts | 0x08000000;
    public final static int Game_ACK_ChoosePlayType = Game_REQ_ChoosePlayType | 0x08000000;
    public final static int Game_ACK_GamePrepareReq = Game_REQ_GamePrepareReq | 0x08000000;


    public final static int Game_Notice_SiteDown = 51001;
    public final static int Game_Notice_StandUp = 51002;
    public final static int Game_Notice_BuyIn = 51003;
    public final static int Game_Notice_GameStart = 51004;
    public final static int Game_Notice_GiveCardRound_Start = 51005;
    public final static int Game_Notice_BetRound_WaitBet = 51006;
    public final static int Game_Notice_BetRound_DoBet = 51007;
    public final static int Game_Notice_PlayerSeeCard = 51008;
    public final static int Game_Notice_SideShow_ApplySideShow = 51009;
    public final static int Game_Notice_SideShow_WaitTargetUserAllow = 51010;
    public final static int Game_Notice_SideShow_WaitChooseUser = 51011;
    public final static int Game_Notice_SideShow_SideShowResult = 51012;
    public final static int Game_Notice_SettleRound_SettleResult = 51013;
    public final static int Game_Notice_SettleRound_History = 51014;
    public final static int Game_Notice_SideShow_CompleteChooseUser = 51015;
    public final static int Game_Notice_SideShow_CompleteAllow = 51016;
    public final static int Game_Notice_BetRound_Fold = 51017;
    public final static int Game_Notice_Settle_Prompt = 51018; //达到总封
    public final static int Game_Notice_MixedCard = 51019; //hukam混牌通知
    public final static int Game_Notice_RewardCroupier = 51050; //打赏荷官
    public final static int Game_Notice_GiveGift = 51051; //用户送礼物
    public final static int Game_Notice_ChoosePlayType = 51025; //等待用户选择玩法
    public final static int Game_Notice_CurrPlayType = 51026; //当前玩法（适用于Dealer玩法）
    public final static int Game_Notice_LeaveReq = 51023; //玩家离桌
    public final static int Game_Notice_CurMoney = 80006; //玩家筹码发生变化
    public final static int Game_Notice_Ready = 50127; //玩家准备



    public static String GetFunctionName(int functionId){
        switch (functionId) {
            case GATE_REQ_loginUser:
                return "GATE_REQ_loginUser";
            case GATE_ACK_loginUser:
                return "GATE_ACK_loginUser";

            case Room_REQ_ApplyJoinTable:
                return "Room_REQ_ApplyJoinTable";
            case Room_ACK_ApplyJoinTable:
                return "Room_ACK_ApplyJoinTable";

            //region REQ
            case Game_REQ_ApplyJoinTable:
                return "Game_REQ_ApplyJoinTable";
            case Game_REQ_ApplySitDown:
                return "Game_REQ_ApplySiteDown";
            case Game_REQ_ApplyStandUp:
                return "Game_REQ_ApplyStandUp";
            case Game_REQ_ApplyLeave:
                return "Game_REQ_ApplyLeave";
            case Game_REQ_ApplyBuyIn:
                return "Game_REQ_ApplyBuyIn";
            case Game_REQ_ApplyBet:
                return "Game_REQ_ApplyBet";
            case Game_REQ_ApplySeeCard:
                return "Game_REQ_ApplySeeCard";
            case Game_REQ_ApplySideShow:
                return "Game_REQ_ApplySideShow";
            case Game_REQ_ApplyShow:
                return "Game_REQ_ApplyShow";
            case Game_REQ_GetSideShowState:
                return "Game_REQ_GetSideShowState";
            case Game_REQ_IsAllowSideShow:
                return "Game_REQ_IsAllowSideShow";
            case Game_REQ_ApplyChooseUser:
                return "Game_REQ_ApplyChooseUser";
            case Game_REQ_ApplyFold:
                return "Game_REQ_ApplyFold";
            case Game_REQ_RewardCroupier:
                return "Game_REQ_RewardCroupier";
            case Game_REQ_GiveGifts:
                return "Game_REQ_GiveGifts";
            case Game_REQ_GamePrepareReq:
                return "Game_REQ_玩家准备";
            //endregion

            //region ACK
            case Game_ACK_ApplyJoinTable:
                return "Game_ACK_ApplyJoinTable";
            case Game_ACK_ApplySitDown:
                return "Game_ACK_ApplySiteDown";
            case Game_ACK_ApplyStandUp:
                return "Game_ACK_ApplyStandUp";
            case Game_ACK_ApplyLeave:
                return "Game_ACK_ApplyLeave";
            case Game_ACK_ApplyBuyIn:
                return "Game_ACK_ApplyBuyIn";
            case Game_ACK_ApplyBet:
                return "Game_ACK_ApplyBet";
            case Game_ACK_ApplySeeCard:
                return "Game_ACK_ApplySeeCard";
            case Game_ACK_ApplySideShow:
                return "Game_ACK_ApplySideShow";
            case Game_ACK_ApplyShow:
                return "Game_ACK_ApplyShow";
            case Game_ACK_GetSideShowState:
                return "Game_ACK_GetSideShowState";
            case Game_ACK_IsAllowSideShow:
                return "Game_ACK_IsAllowSideShow";
            case Game_ACK_ApplyChooseUser:
                return "Game_ACK_ApplyChooseUser";
            case Game_ACK_ApplyFold:
                return "Game_ACK_ApplyFold";
            case Game_ACK_RewardCroupier:
                return "Game_ACK_RewardCroupier";
            case Game_ACK_GiveGifts:
                return "Game_ACK_GiveGifts";
            //endregion

            //region NOTICE
            case Game_Notice_SiteDown:
                return "Game_Notice_SiteDown";
            case Game_Notice_StandUp:
                return "Game_Notice_StandUp";
            case Game_Notice_BuyIn:
                return "Game_Notice_BuyIn";
            case Game_Notice_GameStart:
                return "Game_Notice_GameStart";
            case Game_Notice_GiveCardRound_Start:
                return "Game_Notice_GiveCardRound_Start";
            case Game_Notice_BetRound_WaitBet:
                return "Game_Notice_BetRound_WaitBet";
            case Game_Notice_BetRound_DoBet:
                return "Game_Notice_BetRound_DoBet";
            case Game_Notice_PlayerSeeCard:
                return "Game_Notice_PlayerSeeCard";
            case Game_Notice_SideShow_ApplySideShow:
                return "Game_Notice_SideShow_ApplySideShow";
            case Game_Notice_SideShow_WaitTargetUserAllow:
                return "Game_Notice_SideShow_WaitTargetUserAllow";
            case Game_Notice_SideShow_WaitChooseUser:
                return "Game_Notice_SideShow_WaitChooseUser";
            case Game_Notice_SideShow_SideShowResult:
                return "Game_Notice_SideShow_SideShowResult";
            case Game_Notice_SettleRound_SettleResult:
                return "Game_Notice_SettleRound_SettleResult";
            case Game_Notice_SettleRound_History:
                return "Game_Notice_SettleRound_History";
            case Game_Notice_SideShow_CompleteChooseUser:
                return "Game_Notice_SideShow_CompleteChooseUser";
            case Game_Notice_SideShow_CompleteAllow:
                return "Game_Notice_SideShow_CompleteAllow";
            case Game_Notice_BetRound_Fold:
                return "Game_Notice_BetRound_Fold";

            case Game_Notice_RewardCroupier:
                return "Game_Notice_RewardCroupier";
            case Game_Notice_GiveGift:
                return "Game_Notice_GiveGift";
            case Game_Notice_MixedCard:
                return "Game_Notice_MixedCard";
            case Game_Notice_ChoosePlayType:
                return "Game_Notice_ChoosePlayType";
            case Game_Notice_LeaveReq:
                return "Game_Notice_LeaveReq";

            case Game_Notice_CurMoney:
                return "Game_Notice_玩家筹码发生变化";
            case Game_Notice_Ready:
                return "Game_Notice_玩家准备";
            //endregion
        }
        return "UNKNOW_FunctionId = "+functionId;
    }
}
